﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="JogoAoVivo.aspx.cs" Inherits="PESWeb.Pages.Jogos.JogoAoVivo" %>
<asp:Content ID="Content1" ContentPlaceHolderID="htmlHeaderContentPlaceHolder" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    <table class="rankingGrid" style="border-collapse:collapse; font-size: larger; font-weight: bold;">
        <tr>
            <td align="center">
                <asp:Label ID="lblNomeTime1" runat="server" Text="Label">Mancherster United</asp:Label><br />
                <asp:Label ID="lblNomeJogador1" runat="server" Text="Label" style="color:LightGreen;font-size:Small;">teste</asp:Label>
            </td>
            <td align="center"><asp:Label ID="lblGols1" runat="server" Text="Label">99</asp:Label></td>
            <td align="center">x</td>
            <td align="center"><asp:Label ID="lblGols2" runat="server" Text="Label">99</asp:Label></td>
            
            <td align="center">
                <asp:Label ID="lblNomeTime2" runat="server" Text="Label">Mancherster United</asp:Label><br />
                <asp:Label ID="lblNomeJogador2" runat="server" Text="Label" style="color:LightGreen;font-size:Small;">teste</asp:Label>
            </td>
        </tr>
    </table>
    <asp:Timer runat="server" ID="UpdateTimer" Interval="5000" OnTick="UpdateTimer_Tick" />
    <asp:UpdatePanel ID="UpdatePanelAcoesPartida" runat="server">
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="UpdateTimer" EventName="Tick" />
        </Triggers>
        <ContentTemplate>
            <asp:Repeater runat="server" ID="RepeaterItensAcoes" 
                onitemdatabound="RepeaterItensAcoes_ItemDataBound">
                <HeaderTemplate>
                    <table width="100%">
                        <tr>
                            <th>
                            </th>
                            <th>
                            </th>
                        </tr>
                </HeaderTemplate>
                <ItemTemplate>
                    <tr>
                        <td>
                            <asp:Image runat="server" ID="ImagemAcaoPartida" Width="40px" Height="40px" ImageUrl=""/>
                        </td>
                        <td>
                            <asp:Label runat="server" ID="DataHoraAcaoPartida"><%# ((DateTime)Eval("DataHoraAcao")).ToString("dd/MM/yyyy HH:mm:ss") %></asp:Label>
                            <br />
                            <asp:Label runat="server" ID="TextoAcaoPartida"><%# Eval("Texto") %></asp:Label>
                        </td>
                    </tr>
                </ItemTemplate>
                <FooterTemplate>
                    </table>
                </FooterTemplate>
            </asp:Repeater>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
